package com.turtle.dto;

import com.turtle.valid.group.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @auther: fuzongle
 * @Date: 2020/5/10 19:14
 * @Description:
 */
@Data
@Accessors(chain = true)
@ApiModel
public class UserUpdateInfoParam {


    @ApiModelProperty(value = "用户id")
    @NotNull(groups = {Update.class})
    private Long id;

    @ApiModelProperty(value = "呢称")
    @Size(max = 20)
    private String name;

    @ApiModelProperty(value = "头像")
    @Size(max = 128)
    private String avatar;

    @ApiModelProperty(value = "性别 0：女  1：男")
    @Min(0) @Max(1)
    private Integer gender;

    @ApiModelProperty(value = "个性签名")
    @Size(max = 140)
    private String signature;


}